projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e3c6c7b
)
kwbimage: align v1 binary header to 4B
author
Chris Packham
<
[email protected]
>
Sun, 22 Feb 2015 22:25:20 +0000
(11:25 +1300)
committer
Luka Perkov
<
[email protected]
>
Thu, 5 Mar 2015 21:08:59 +0000
(22:08 +0100)
According to the Armada-XP documentation the binary header format
requires the header length to be aligned to 4B.
Signed-off-by: Chris Packham <
[email protected]
>
Acked-by: Stefan Roese <
[email protected]
>
Acked-by: Prafulla Wadaskar <
[email protected]
>
tools/kwbimage.c
patch
|
blob
|
history
diff --git
a/tools/kwbimage.c
b/tools/kwbimage.c
index de5c80847e3f8d2ee4c8a9aeda595d0c3b1adb56..9540e7eb84fc40b67b2827869b081e3462ca0577 100644
(file)
--- a/
tools/kwbimage.c
+++ b/
tools/kwbimage.c
@@
-498,6
+498,7
@@
static void *image_create_v1(size_t *imagesz, struct image_tool_params *params,
binhdrsz = sizeof(struct opt_hdr_v1) +
(binarye->binary.nargs + 1) * sizeof(unsigned int) +
s.st_size;
+ binhdrsz = ALIGN_SUP(binhdrsz, 32);
hdr->headersz_lsb = binhdrsz & 0xFFFF;
hdr->headersz_msb = (binhdrsz & 0xFFFF0000) >> 16;